package com.jacobson.huobi.mvp.presenter

import com.jacobson.core.di.annotation.ActivityScope
import com.jacobson.core.mvp.BasePresenter
import com.jacobson.huobi.common.expansion.applySchedulersIoMain
import com.jacobson.huobi.common.expansion.onResponseResult
import com.jacobson.huobi.mvp.contract.InviteFriendsContract
import com.jacobson.huobi.mvp.contract.KycAuthContract
import javax.inject.Inject

@ActivityScope
class InviteFriendsPresenter @Inject constructor(
    view: InviteFriendsContract.View,
    model: InviteFriendsContract.Model
) : BasePresenter<InviteFriendsContract.View, InviteFriendsContract.Model>(view, model),
    InviteFriendsContract.Presenter {
    override fun loadSharedInfo() {
        model.loadSharedInfo()
            .applySchedulersIoMain()
            .onResponseResult(view) { resp ->
                view?.onSharedInfoResultResp(resp)
            }
    }
}
